-- https://github.com/folke/which-key.nvim

require("which-key").setup(
    {
        plugins = {
            spelling = {
                -- 是否接管默认 z= 的行为
                enabled = true,
                suggestions = 20
            }
        }
    }
)

-- local whichkey = require("which-key")
-- whichkey.register({
--     d = { "<Cmd>Telescope lsp_definitions<CR>", "Definitions" },
--     t = { "<Cmd>Telescope lsp_type_definitions<CR>", "Type definitions" },
--     I = { "<Cmd>Telescope lsp_implementations<CR>", "Goto implementation" },
--     r = { "<Cmd>Telescope lsp_references<CR>", "References" },
--     ["@"] = { "<Cmd>Telescope lsp_document_symbols<CR>", "Document Symbols" },
--     w = { "<Cmd>Telescope lsp_document_symbols<CR>", "Workspace Document Symbols" },
--     ["."] = { "<Cmd>Telescope lsp_code_actions<CR>", "Code Action" },
--     [","] = { "<Cmd>Telescope lsp_range_code_actions<CR>", "Range Code Action" },
-- }, { prefix = "g" })
-- whichkey.register({
--     t = {
--         name = "Telescope",
--         b = { "<Cmd>Telescope buffers<CR>", "List buffers" },
--         B = { "<Cmd>Telescope builtin<CR>", "Find builtin features" },
--         f = { "<Cmd>Telescope find_files<CR>", "Find file" },
--         g = { "<Cmd>Telescope live_grep<CR>", "Live grep" },
--         G = { "<Cmd>Telescope git_files<CR>", "Git files" },
--         r = { "<Cmd>Telescope old files<CR>", "MRU" },
--         k = { "<Cmd>Telescope keymaps<CR>", "Keymap" },
--     },
-- }, { prefix = "<Leader>" })
